SET EFFECT CONSTANT MATRIX

This command will set the value of an FX effect matrix constant.

  Syntax
SET EFFECT CONSTANT MATRIX Effect Number, Constant String, Matrix Number
  Parameters
Effect Number
Integer
This value is an integer number such as 1.
Constant String
String
This value is a string value encased in speech marks.
Matrix Number
Integer
Specify a matrix number between 1 and 65535.

  Returns

This command does not return a value.

  Description

An FX effect constant is one of many internal variables of the effect which control the effect in real-time based on what the FX does. Some constants are automatically provided to the FX system effect such as world and camera positions, time and other critical data. Often, FX files will contain extra constants to create a variety of results and these constants can be altered in real-time by this command. Use the PERFORM CHECKLIST FOR EFFECT VALUES to get the names of all the constants you can alter.

  Example Code
make object sphere 1,100
load effect "goodshader.fx",1,0
set object effect 1,1
r=make matrix4(1)
r=make vector4(2)
set identity matrix4 1
set vector4 2,0,10,5,0
set effect constant matrix 1,"TransformMatrix",1
set effect constant vector 1,"LightPosition",2
end
  See also

BASIC3D Commands Menu
Index